package algorithms.util;

import algorithms.util.Vertex;

public class Edge {
    private Vertex fromVertex = null;
    private Vertex toVertex = null;
    private int weight;

    public Edge(Vertex from, Vertex to, int weight) {
        this.fromVertex = from;
        this.toVertex = to;
        this.weight = weight;
    }

    public Vertex getFrom() {
        return this.fromVertex;
    }

    public Vertex getTo() {
        return this.toVertex;
    }
    public int getWeight() {
        return this.weight;
    }
}
